#include <iostream>
#include <array>
#include <string>

using namespace std;
const int Seasons = 4;
const array<string, Seasons> Snames = {"Spring", "Summer", "Fall", "Winter"};

void fill(array<double, Seasons> *pa);
void show(array<double, Seasons> da);

using namespace std;

int main(void)
{
	array<double,Seasons> expenses;
	fill(&wxpenses);
	show(expenses);

    return 0;
}

void fill(array<double, Seasons> *pa)
{
	for(int i = 0; i < 4; i++)
	{
		cout << "enter " << Snames[i] << "expenses:";
		cin >> (*pa)[i];
	}
}

void show(array<double, 4> da)
{
	double total = 0.0;
	cout << "\nEXPENSES\n";
	for(int i = 0; i < 4; i++)
	{
		cout << Snames[i] << ":$ " << da[i] << endl;
		total += da[i]; 
	}
	cout << "total expenses: $ " << total << endl;
}


